#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//int main()
//{
	//int a[]={1,2,3,4,5};
	//int b[]={2,3,4,5,6};
	//int c[]={3,4,5,6,7};
	//int* arr[3]={a,b,c};
	//int i=0,j=0;
	//for (i = 0;i < 3;i++)
	//{
	//	for (j = 0;j < 5;j++)
	//	{
	//		//printf("%d ",*(arr[i]+j));
	//		printf("%d ",arr[i][j]);
	//		//&arr[i][j]==arr[i]+j;
	//	}
	//	printf("\n");
	//}
	//return 0;


	/*int a[5] = { 1,2,3,4,5 };
	int(*p)[5] = &a;
	printf("%p\n", a);
	printf("%p\n", p);
	printf("%p\n", &a);*/

void print(int(*p)[5], int row, int col)
{
	int i=0,j=0;
	for (i = 0;i < row; i++)
	{
		for (j = 0;j < col;j++)
		{
			printf("%d ", *(*(p + i) + j));
		}
		printf("\n");
	}
}

int main()
{
	int arr[3][5]={{1,2,3,4,5},{2,3,4,5,6},{3,4,5,6,7}};
	print(arr,3,5);
}